class BootStrap {

     def init = { servletContext ->
         if (User.count() == 0) {
             def u = new User(username:'douglas', passwd: 'a9993e364706816aba3e25717850c26c9cd0d89d', email:'douglas@wonder.com.br', userRealName: 'Douglas', description: 'Douglas', enabled: true).save()
             new Role(description:'Administradores', authority:'ROLE_ADMIN').addToPeople(u).save()
         }
         //new User(username:'douglas', passwd:'abc', enabled:true)
     }
     def destroy = {
     }
} 